﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.ExtendBuffDuration, typeof(SkillEditorGraph))]
    public class SkillEffectiveNode_ExtendBuffDuration : SkillEffectiveNode
    {
        protected override ESkillEffectiveType effectType => ESkillEffectiveType.ExtendBuffDuration;

        [Output] public FormulaSetter buffID;
        [Output("时间")] public FormulaSetter extend;

        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffective_ExtendBuffDuration_ConfigData()
            {
            };
            this.buffID = new FormulaSetter((x) => rConfig.buffID = x);
            this.extend = new FormulaSetter((x) => rConfig.extend = x);
            return rConfig;
        }
    }
}